package com.young.trigger.event;

import com.young.core.domain.JobDO;
import org.springframework.context.ApplicationEvent;

/**
 * @description：
 * @author: yangyahui01
 * @date: 11/29/24 3:46 PM
 */
public class CallFailedEvent extends ApplicationEvent {


    //操作者
    private String operator;

    public CallFailedEvent(Object source) {
        this(source, null);
    }

    public CallFailedEvent(Object source, String operator) {
        super(source);
        this.operator = operator;
    }

    public String getOperator() {
        return operator;
    }


    @Override
    public JobDO getSource() {
        return (JobDO)super.getSource();
    }
}
